package guiCode;
import basic.ClientConsole;
import flexibility.downloadManager;
import flexibility.userData;
import gui.TeacherMainMenuGUI;
import teacher.getFile;
import gui.studFeedbackGUI;
import gui.studGradeAssGUI;
import flexibility.downloadManager;
import flexibility.showMessage;

import java.sql.SQLException;
import javax.swing.JLabel;

import teacher.getassignment;

import com.sun.rowset.CachedRowSetImpl;


public class studentFeedbackcode {
	private studFeedbackGUI sf;
	public userData T_Data = new userData();
	public TeacherMainMenuGUI tmm ;
	public ClientConsole teacherConnection=TeacherMainMenuCode.getTeacherConnection();
	public CachedRowSetImpl rs;
	
	public void updateStudFeedbackGUI(String sID,String s2,String s3,studFeedbackGUI sf){
		sf.setlabel(sID,s2,s3);
		System.out.println(sID);
		
	}
	//public CachedRowSetImpl getCommitFile(String assID,String sID)throws SQLException{
	public CachedRowSetImpl	getCommitFile(String assID,String sID,int i){
		
	    getFile gf = new getFile();
		rs=gf.getFile(teacherConnection, rs, T_Data,assID,sID,i);
		return rs;
		
	}
	public void downloadFile(Integer fileID){
		downloadManager downT=new downloadManager(teacherConnection,fileID);
		downT.downloadFile();
	}
	

}
